import { FormSchema } from '/@/components/Form/index';
import { useI18n } from '/@/hooks/web/useI18n';
const { t } = useI18n();

export interface ListItem {
  key: string;
  title: string;
  description: string;
  extra?: string;
  avatar?: string;
  color?: string;
}

// tab的list
export const settingList = [
  {
    key: '1',
    name: t('routes.components.personalSetting.basicSetting'),
    component: 'BaseSetting',
  },
  {
    key: '2',
    name: t('routes.components.personalSetting.systemSetting'),
    component: 'SystemSetting',
  },
];

// 基础设置 form
export const baseSetschemas: FormSchema[] = [
  {
    field: 'username',
    component: 'Input',
    label: t('routes.components.personalSetting.username'),
    colProps: { span: 18 },
  },
  {
    field: 'password',
    component: 'InputPassword',
    label: t('routes.components.personalSetting.password'),
    colProps: { span: 18 },
  },
];

// 系统设置 list
export const SystemList: ListItem[] = [
  {
    key: '1',
    title: t('routes.components.personalSetting.overdueJudgment'),
    description: t('routes.components.personalSetting.overdueJudgmentDescription'),
  },
  {
    key: '2',
    title: t('routes.components.personalSetting.taskNameDisplay'),
    description: t('routes.components.personalSetting.taskNameDisplayDescription'),
  },
  {
    key: '3',
    title: t('routes.components.personalSetting.specialCalendar'),
    description: t('routes.components.personalSetting.specialCalendarDescription'),
  },
  {
    key: '4',
    title: t('routes.components.personalSetting.autoGenerateNumber'),
    description: t('routes.components.personalSetting.autoGenerateNumberDescription'),
  },
  {
    key: '5',
    title: t('routes.components.personalSetting.overdueReminder'),
    description: t('routes.components.personalSetting.overdueReminderDescription'),
  },
];

/**
 * 模块名:下拉框设置list
 * 代码描述:
 * 作者:张泽源
 * 创建时间:2025/01/08 11:51:24
 */
export const selectList: ListItem[] = [
  {
    key: '1',
    title: t('routes.components.personalSetting.previewSetting'),
    description: t('routes.components.personalSetting.previewDescription'),
  },
];
